<template>
  <h1>布局组件</h1>
<el-row gutter="50">
 <el-col :span="8" style="border: 5px solid #f00">111</el-col>
 <el-col :span="8" style="border: 5px solid #0f0">111</el-col>
 <el-col :span="8" style="border: 5px solid #00f">111</el-col>
</el-row>

  <el-row :gutter="10">
   <el-col :span="12"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
   <el-col :span="12"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
  </el-row>

  <h3>六张图</h3>
  <el-row>
  <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
  <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
  <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
  <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
  <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
  <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
  </el-row>

  <h3>三张图 1：2：3</h3>
  <el-row>
   <el-col :span="4"><img src="imgs/mwzz.png" style="width: 100%"></el-col>
   <el-col :span="8"><img src="imgs/mwzz.png" style="width: 100%"></el-col>
   <el-col :span="12"><img src="imgs/mwzz.png" style="width: 100%"></el-col>
  </el-row>

  <h3>一共8列，每列显示数字1 2 3 ...8</h3>
  <el-row >
   <el-col :span="3" v-for="item in 8">{{item}}</el-col>

  </el-row>
  <h3>列偏移</h3>
<!--  :offset-->
  <el-row >
   <el-col :span="20" :offset="4">
     <img src="imgs/rich.jpg"style="width: 100%"></el-col>
  </el-row>


  <h3>列嵌套</h3>
  <el-row >
   <el-col :span="12" style="border: 5px solid magenta;">111</el-col>
   <el-col :span="12" style="border: 5px solid maroon;">
<!--    嵌套时，一定要把当前元素再重新看作是一个新的el-row，还是24份，在进行分配-->
    <el-row >
     <el-col :span="8" style="border: 5px solid #f00">111</el-col>
     <el-col :span="8" style="border: 5px solid #0f0">111</el-col>
     <el-col :span="8" style="border: 5px solid #00f">111</el-col>
    </el-row>
   </el-col>
  </el-row>
</template>

<script>

</script>

<style scoped>

</style>